home *** CD-ROM | disk | FTP | other *** search
/ NeXT Education Software Sampler 1992 Fall / NeXT Education Software Sampler 1992 Fall.iso / Programming / Source / HippoDraw / HippoDrawSrc1.1 / Hippo.subproj / SyncScrollView.h < prev    next >
Encoding:
Text File  |  1992-04-25  |  1006 b   |  47 lines

  1. #import <appkit/ScrollView.h>
  2.  
  3. typedef enum {
  4.     LowerLeft = 0, LowerRight, UpperLeft, UpperRight
  5. } RulerOrigin;
  6.  
  7. @interface SyncScrollView : ScrollView
  8. {
  9.     id hClipRuler;
  10.     id vClipRuler;
  11.     id rulerClass;
  12.     NXCoord horizontalRulerWidth;
  13.     NXCoord verticalRulerWidth;
  14.     RulerOrigin rulerOrigin;
  15.     BOOL verticalRulerIsVisible;
  16.     BOOL horizontalRulerIsVisible;
  17.     BOOL rulersMade;
  18. }
  19.  
  20. /* Setting up the rulers */
  21.  
  22. - (BOOL)bothRulersAreVisible;
  23. - (BOOL)eitherRulerIsVisible;
  24. - (BOOL)verticalRulerIsVisible;
  25. - (BOOL)horizontalRulerIsVisible;
  26.  
  27. - setRulerClass:factoryId;
  28. - setRulerWidths:(NXCoord)horizontal :(NXCoord)vertical;
  29. - setRulerOrigin:(RulerOrigin)origin;
  30.  
  31. - showHorizontalRuler:(BOOL)flag;
  32. - showVerticalRuler:(BOOL)flag;
  33.  
  34. /* Comes up the responder chain to us */
  35.  
  36. - updateRulers:(const NXRect *)rect;
  37. - showHideRulers:sender;
  38.  
  39. /* Overridden from superclass */
  40.  
  41. - reflectScroll:cView;
  42. - tile;
  43. - scrollClip:aClipView to:(const NXPoint *)aPoint;
  44. - descendantFrameChanged:sender;
  45.  
  46. @end
  47.